const Koa = require('koa');

const app = new Koa();
const bodyParser = require('koa-bodyparser');
app.use(bodyParser());


// 导入controller middleware:
const controller = require('./controller');
// 使用middleware:
app.use(controller());


app.listen(3000);
console.log('app started at port 3000...');

